/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.zcm.modules.bzy.entity;

import org.hibernate.validator.constraints.Length;

import com.zcm.common.persistence.DataEntity;

/**
 * 八爪鱼配置Entity
 * @author www
 * @version 2018-10-23
 */
public class BzyConfig extends DataEntity<BzyConfig> {
	
	private static final long serialVersionUID = 1L;
	private String taskid;		// 任务ID
	private String tabname;		// 入库的表名
	private String uk;		// 唯一索引
	private String rate;		// 采集周期
	
	public BzyConfig() {
		super();
	}

	public BzyConfig(String id){
		super(id);
	}

	@Length(min=1, max=64, message="任务ID长度必须介于 1 和 64 之间")
	public String getTaskid() {
		return taskid;
	}

	public void setTaskid(String taskid) {
		this.taskid = taskid;
	}
	
	@Length(min=1, max=64, message="入库的表名长度必须介于 1 和 64 之间")
	public String getTabname() {
		return tabname;
	}

	public void setTabname(String tabname) {
		this.tabname = tabname;
	}
	
	@Length(min=1, max=255, message="唯一索引长度必须介于 1 和 255 之间")
	public String getUk() {
		return uk;
	}

	public void setUk(String uk) {
		this.uk = uk;
	}
	
	@Length(min=0, max=11, message="采集周期长度必须介于 0 和 11 之间")
	public String getRate() {
		return rate;
	}

	public void setRate(String rate) {
		this.rate = rate;
	}
	
}